#include "junix.h"

// this is a UNP book example

int main(int argc, char **argv)
{
	union 
	{
		short s;
		char v[2];
	} data;

	data.s=0x0102;

	if(data.v[0]==0x2)
		fprintf(stdout,"little endian\n");
	else
		fprintf(stdout,"little endian\n");

    exit(0);
}

